export const api = window.$crud("land");
export const detailApi = window.$crud("land/info");
// 根据landId获取地块进度信息列表接口的api
export const progressApi = window.$crud("land/companySchedule");
// 处了获取用地列表的api都走这个
export const dynApi = window.$crud("land/info");
export const formColmuns = [
  {
    label: "更新周期",
    prop: "updateCycleCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "update_cycle_code",
    isNotAutoWrap: true,
  },
  {
    label: "区域",
    prop: "regionCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "region_code",
    isNotAutoWrap: true,
  },
  {
    label: "用地类型",
    prop: "landUseTypeCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "land_use_type_code",
    isNotAutoWrap: true,
  },
  {
    label: "更新进度",
    prop: "stageCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "stage_code",
    isNotAutoWrap: true,
  },
  {
    label: "更新方案",
    prop: "industrialUpdateCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "industrialrenewalmethods",
    isNotAutoWrap: true,
  },
  {
    label: "地块名称",
    prop: "name",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "亩均税收",
    prop: "muTaxQRange",
    minWidth: 140,
    dataType: "numberRange",
    isNotAutoWrap: true,
  },
];
export const tableColmuns = [
  {
    label: "更新周期",
    prop: "updateCycleCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "update_cycle_code",
    isNotAutoWrap: true,
  },
  {
    label: "区域",
    prop: "regionCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "region_code",
    isNotAutoWrap: true,
  },
  {
    label: "用地类型",
    prop: "landUseTypeCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "land_use_type_code",
    isNotAutoWrap: true,
  },
  {
    label: "更新进度",
    prop: "stageCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "stage_code",
    isNotAutoWrap: true,
  },
  {
    label: "更新方案",
    prop: "industrialUpdateCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "industrial_update_code",
    isNotAutoWrap: true,
  },
  {
    label: "地块名称",
    prop: "name",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "企业地址",
    prop: "residence",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "联系人",
    prop: "contactName",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "电话",
    prop: "contactTel",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "占地（亩）",
    prop: "coverArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "未建设（亩）",
    prop: "existingUnfinishedLand",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "建筑面积（㎡）",
    prop: "updatedBuildingArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "容积率",
    prop: "updatedPlotRatio",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "亩均税收（万元）",
    prop: "muTax",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "数据来源",
    prop: "datasourceCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "datasource_code",
    isNotAutoWrap: true,
  },
];
export const landColumns = [
  {
    label: "地块名称",
    prop: "name",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "区域",
    prop: "regionCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "region_code",
    isNotAutoWrap: true,
  },
  {
    label: "地址",
    prop: "address",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "地块评估价格（万元）",
    prop: "evaluationPrice",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "占地面积（亩）",
    prop: "coverArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "现有未建用地（亩）",
    prop: "existingUnfinishedLand",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "未建设原因",
    prop: "existingUnfinishedReason",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "用地类型",
    prop: "landUseTypeCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "land_use_type_code",
    isNotAutoWrap: true,
  },
  {
    label: "原用地性质",
    prop: "originalLandPropertiesCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "original_land_properties_code",
    isNotAutoWrap: true,
  },
  {
    label: "原有建筑面积（㎡）",
    prop: "originalBuildingArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "原容积率",
    prop: "originalPlotRatio",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "产业更新方式",
    prop: "industrialUpdateCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "industrial_update_code",
    isNotAutoWrap: true,
  },
  {
    label: "更新后用地性质",
    prop: "updatedLandPropertiesCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "original_land_properties_code",
    isNotAutoWrap: true,
  },
  {
    label: "更新后建筑面积（㎡）",
    prop: "updatedBuildingArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "更新后容积率",
    prop: "updatedPlotRatio",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "产业更新造价（万元）",
    prop: "industrialUpdateCost",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "产业更新拆除面积（㎡）",
    prop: "industrialUpdateDemolitionArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "产业更新新建面积（㎡）",
    prop: "industrialUpdateNewArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "数据来源",
    prop: "datasourceCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "datasource_code",
    isNotAutoWrap: true,
  },
  {
    label: "更新周期",
    prop: "updateCycleCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "three_update_circle",
    isNotAutoWrap: true,
  },
  {
    label: "简介",
    prop: "brief",
    minWidth: 140,
    span: 12,
    dataType: "textarea",
    isNotAutoWrap: true,
  },
  {
    label: "备注",
    prop: "remark",
    minWidth: 140,
    span: 12,
    dataType: "textarea",
    isNotAutoWrap: true,
  },
  {
    label: "土地证",
    prop: "landCertificate",
    minWidth: 140,
    dataType: "file",
    isNotAutoWrap: true,
  },
  {
    label: "房产证",
    prop: "ownershipCertificate",
    minWidth: 140,
    dataType: "file",
    isNotAutoWrap: true,
  },
  {
    label: "更新前照片",
    prop: "preUpdatePhoto",
    minWidth: 140,
    dataType: "image",
    isNotAutoWrap: true,
  },
  {
    label: "更新后照片",
    prop: "updatedPhoto",
    minWidth: 140,
    dataType: "image",
    isNotAutoWrap: true,
  },
];
// 年均税收
export const revenueTableColmuns = [
  {
    label: "年份",
    prop: "year",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "year",
    isNotAutoWrap: true,
  },
  {
    label: "占地面积（亩）",
    prop: "coverArea",
    minWidth: 140,
    dataType: "number",
    isNotAutoWrap: true,
  },
  {
    label: "建筑面积（㎡）",
    prop: "buildingArea",
    minWidth: 140,
    dataType: "number",
    isNotAutoWrap: true,
  },
  {
    label: "容积率",
    prop: "plotRatio",
    minWidth: 140,
    dataType: "number",
    isNotAutoWrap: true,
  },
  {
    label: "亩均税收（万元）",
    prop: "muTax",
    minWidth: 140,
    dataType: "number",
    isNotAutoWrap: true,
  },
];
// 入住企业
export const residentEnterpriseTableColmuns = [
  {
    label: "企业名称",
    prop: "name",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "角色",
    prop: "occupationType",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "role",
    isNotAutoWrap: true,
  },
  {
    label: "住所",
    prop: "residence",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "统一社会信用代码",
    prop: "unifiedSocialCreditCode",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "企业类型",
    prop: "companyTypeCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "enterprisetype",
    isNotAutoWrap: true,
  },
  {
    label: "产业",
    prop: "industrialCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "industry",
    isNotAutoWrap: true,
  },
  {
    label: "投资日期",
    prop: "investDate",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
    isNotAutoWrap: true,
  },
  {
    label: "注册资本（万元）",
    prop: "registeredCapital",
    minWidth: 140,
    dataType: "number",
    isNotAutoWrap: true,
  },
  {
    label: "联系人",
    prop: "contactName",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "联系电话",
    prop: "contactTel",
    minWidth: 140,
    dataType: "tel",
    isNotAutoWrap: true,
  },
  {
    label: "年份",
    prop: "year",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "year",
    isNotAutoWrap: true,
  },
  {
    label: "销售额（万元）",
    prop: "salesVolume",
    minWidth: 140,
    dataType: "number",
    isNotAutoWrap: true,
  },
  {
    label: "税收（万元）",
    prop: "taxRevenue",
    minWidth: 140,
    dataType: "number",
    isNotAutoWrap: true,
  },
];
export const formData = {
  updateCycleCode: "",
  regionCode: "",
  landUseTypeCode: "",
  stageCode: "",
  industrialUpdateCode: "",
  name: "",
  muTaxQRange: "",
};
export const progressTableColmuns = [
  {
    label: "进度日期",
    prop: "scheduleDate",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
    isNotAutoWrap: true,
  },
  {
    label: "所处阶段",
    prop: "stageCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "stage_code",
    isNotAutoWrap: true,
  },
  {
    label: "资料名称",
    prop: "materialName",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "类型",
    prop: "materialTypeCode",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "页数",
    prop: "materialPage",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "资料日期",
    prop: "materialDate",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
    isNotAutoWrap: true,
  },
  {
    label: "附件",
    prop: "attachment",
    minWidth: 140,
    dataType: "file",
    isNotAutoWrap: true,
  },
  {
    label: "备注",
    prop: "remark",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
];
// 进度填报的formData
export const progressTableData = {};
// 用地信息的formData
export const landFormData = {};
let config = {
  api,
  formColmuns,
  tableColmuns,
  formData,
  landColumns,
  dynApi,
  revenueTableColmuns,
  residentEnterpriseTableColmuns,
  landFormData,
  progressTableData,
  progressTableColmuns,
  name: "企业列表",
  width: 125,
};

export default config;
